package juc;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class FutureTaskA {

	private static FutureTask future = new FutureTask(()-> 5);

	public static void main(String[] args) throws ExecutionException, InterruptedException {
		Thread thread = new Thread(future);
		thread.start();
		System.out.println(future.get());
	}
}
